package com.cf.dao;

import com.cf.entity.Item;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface FocusDao {
    //查询总关注条数
    public int selectCountByitemid(long iid);

    //添加关注
    public int insertFocus(@Param("userid") long userid, @Param("iid") long iid);

    //取消关注
    public int deleteFocus(@Param("userid") long userid, @Param("iid") long iid);

    //根据用户id查询该用户所有的项目
    public List<Item> selectItemByUserIds(long userid);

    //收藏
    public int selectByuidAndiid(@Param("userid") long userid, @Param("iid") long iid);

}
